//
//  GoodsCommentModel.m
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/4/25.
//  Copyright © 2021 冯传昌. All rights reserved.
//

#import "GoodsCommentModel.h"

@implementation GoodsCommentModel

+(GoodsCommentModel *)paraWithDict:(NSDictionary *)dict withShowDetail:(BOOL)showDetail{
    GoodsCommentModel *model;
    model = [GoodsCommentModel yy_modelWithDictionary:dict];
    model.ID = [dict[@"id"] integerValue];
    model.showDetail = showDetail;
    if (showDetail == YES) {
        model.height = [Configuration getLabelHeightWithText:model.comment withFont:FontSet(13) withLBWidth:ScreenWidth-30]+66;
    }else{
        model.height = 85;
    }
    return model;
}


@end
